{% load menuapp main_tags %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>

    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/reset.css" media="screen"/>
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/text.css" media="screen"/>
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/960.css" media="screen"/>
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/layout.css" media="screen"/>
    <!--[if IE 6]><link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ie6.css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ie.css" media="screen" /><![endif]-->
    {% block extra_css %}{% endblock %}

    <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.min.js"></script>
    <!--[if lt IE 7]>
    <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.dropdown.js"></script>
    <![endif]-->
    {% block extra_js %}{% endblock %}

</head>
<body>
<div class="container_12">

    <div class="grid_12 header bord">
        <div class="grid_5">
            LOGO
        </div>
        <div class="grid_5">
            <div class="items">
                <div class="grid_3">
                    <img width="110px" src="{{ MEDIA_URL }}images/aw-22.png">
                </div>
                <div class="grid_8">
                    {% show_bdaysT %}
                </div>
            </div>
        </div>
        <div class="grid_2 auth">
            {% if request.user.is_authenticated %}
                <p>Здравствуй, {{ request.user }} </p>
                <p><a href="{% url admin:index %}">Управление</a></p>
                <p><a href="{% url auth_logout %}">Выйти</a></p>
            {% else %}
                {% if not form %}
                    <form method="post" action="{% url auth_login %}">
                        {% csrf_token %}
                        <label for="id_username">Логин</label> <input id="id_username" type="text" name="username"
                                                                      maxlength="30"
                                                                      style="margin-left: 10px;width:100px;text-align:center;">
                        <label for="id_password">Пароль</label> <input type="password" name="password" id="id_password"
                                                                       style="margin-left: 2px;width:100px;text-align:center;">
                        <input type="submit" value="Войти" style="width:140px;text-align:center;">
                    </form>{% endif %}

            {% endif %}
        </div>
    </div>
    <div class="clear"></div>

    <div class="grid_12">
        <div class="grid_3">
            <div class="left_menu">
                {% show_menu "Навигация" %}
                {% show_menu "Ссылки" %}
            </div>
        </div>

        <div class="grid_9">
            {% block content %}
            {% endblock %}
        </div>

    </div>
    <div class="clear"></div>
    <div class="grid_12">
        <div class="footer bord">
            FUTR
        </div>
    </div>
    <div class="clear"></div>

</div>

</body>
</html>